const allOption = {
    name:'全部',
    value:null
}
export const sexList =(isAll=false)=>{
    let res = [
        {
            name:'男',
            value:1
        },
        {
            name:'女',
            value:2
        }
    ]
    if(isAll) res.unshift(allOption)
    return res
}
export const statusList =(isAll=false)=>{
    let res = [
        {
            name:'否',
            value:0
        },
        {
            name:'是',
            value:1
        }
    ]
    if(isAll) res.unshift(allOption)
    return res
}